home *** CD-ROM | disk | FTP | other *** search
/ System Booster / System Booster.iso / Archives / StartupTools / COPMQR28.readme < prev    next >
Text File  |  1996-09-26  |  6KB  |  111 lines

  1. Short:    CopyMem speedup patch by *Art(no Fake)
  2. Author:   Arthur Hagen (*Art)
  3. Uploader: Christopher Naas (christon@powertech.no)
  4. Type:     util/misc
  5.  
  6.  
  7.                    CopyMemQuicker 2.8 (21 Aug 1994)
  8.            Copyright © 1991, 1992, 1993, 1994 Arthur Hagen
  9.                             Parts of code:
  10.         Copyright © 1985-1991 Commodore Business Machines Ltd.
  11.         ======================================================
  12.                      Posted to the Public Domain!
  13.                 (by permission of Commodore Norge A/S)
  14.  
  15.  
  16. *** BOGUS ALERT *** BOGUS ALERT *** BOGUS ALERT *** BOGUS ALERT ***
  17.  
  18. A "CopyMemQuickerV3.0" was recently released by a Mr Cor van Dijk.
  19. This is NOT the original CopyMemQuicker, but an inferior hack.
  20. Even though this patch is under *some* circumstances quicker than both
  21. CopyMemQuicker and the system routines, it will in other cases be MUCH
  22. slower, due to inadequate trailing-byte-testing and surplus instruc-
  23. tions.  The speed test program was left out of Mr Dijk's archive - I
  24. wonder why...  And it is unsafe.  If you run it twice, it will not
  25. just remove the patch, but also free the memory allocated for it.  If
  26. another task is doing a large CopyMem(Quick) when you end this patch
  27. by running it again, chances are that everything will go @($#*&@(#
  28. when the memory being run is freed.  Lame - really lame.
  29. As for the "Special implementation for 68010/68020 caches" the
  30. doc-file boast of, it will actually be SLOWER on a 68010, since a few
  31. of the 6-byte latch'able loops have been made larger - i.e. too large
  32. for the 6-byte prefetch latch of the 68010.  And as for "Special
  33. implementation for 68020/30/40/60 pipelined fetch", this is pure bull.
  34. Instructions are NOT in any way optimised either by ensuring maximum
  35. prefetch or by mod16-aligning the code.  The code will function all
  36. right on a 68000/68020-equipped machine, but is slower than necessary
  37. on all other configurations.
  38. What baffles me most, is that this bogus file was found on Safe Hex
  39. International's BBS.  Until they stop distributing bogus software (and
  40. start paying for ShareWare they boast of having and using) I can only
  41. advice you NOT to trust anything from their BBS.  Use VirusZ if you
  42. need a decent virus killer.  Take my word for it.
  43.  
  44.      ***************** On to the program... *********************
  45.  
  46.   Just another small thingy to put in your Amigas S:Startup-Sequence.
  47. This one will patch the exec.library functions CopyMem and CopyMemQuick
  48. to become faster than the regular ones.  These functions are two of the
  49. cornerstone functions of the operating system, so most programs should
  50. benefit from this patch.  I really wonder why the routines never were
  51. optimised by Commodore in the first place!
  52.  
  53.    Known bugs:  None.  Should work with all versions of the O/S from
  54. KickStart 1.2 upto and including 3.1, and with all processors from the
  55. 68000 upto and including the 68040.
  56.   Even so, SOME virus killers might just report this patch as a virus -
  57. it isn't.  And, remember, if you use this program, you do it totally at
  58. your own risk - I will under no circumstances be held responsible for
  59. what this program does to any system (It should be 100% compatible with
  60. ye olde routines, though - the only difference is that this code won't
  61. bug out if you try to copy 0 bytes, the original code does...).
  62.   Speed increases may vary according to the processor, but some cycles
  63. should be should be shaved off on all systems.  Expect between 0 and 50
  64. percent speed increase, depending on alignment and copy size.
  65.   The patch is optimised for all 68k processors (except the 68008), and
  66. relies upon the loop-mode and instruction cache for the faster pro-
  67. cessors.
  68.  
  69.   Usage:
  70.   1>  CopyMemQuicker
  71.  
  72.   This will act like a switch, and turns the program on/off (but I
  73. don't know why it ever should be turned off).  The memory used will NOT
  74. be freed when turning the function off, as some other part of your
  75. multitasking system might still be using the routine.  I think you
  76. could live with the loss of 2-300 bytes, though...
  77.  
  78.   To test the routine on your machine, run "testit" from CLI (This
  79. requires that you have version 2.0 of the O/S).  It might take some
  80. time to complete (depending on the processor), but should give fairly
  81. accurate test results.  (The reason for the test taking longer time
  82. than the figures printed on-screen indicate, is that the time to
  83. execute the timing loop itself is timed and deducted before printing
  84. (to give as accurate a result as possible).)
  85.  
  86.   There WAS a severe bug in versions 1.4 and 1.5 of this patch, which
  87. caused a guru on all machines except those fitted with a 68010.  This
  88. was due to a bug in the Aztec assembler, which could not handle ad-
  89. dresses like "*-2" properly.  The bug has been worked around, and the
  90. current version has been properly tested before release.  Sorry!
  91.  
  92. Enjoy,
  93. *Art
  94.  
  95.  
  96. ============================= Archive contents =============================
  97.  
  98. Original  Packed Ratio    Date     Time    Name
  99. -------- ------- ----- --------- --------  -------------
  100.     1428     825 42.2% 21-Aug-94 15:31:22  CopyMemQuicker
  101.     4682    2248 51.9% 21-Aug-94 15:30:34  CopyMemQuicker.DOC
  102.     2324     730 68.5% 12-Jun-94 03:28:02  source/cm000.asm
  103.     2171     652 69.9% 12-Jun-94 03:28:26  source/cm010.asm
  104.     3751    1071 71.4% 12-Jun-94 06:14:42  source/cm020.asm
  105.     2547     980 61.5% 12-Jun-94 07:32:12  source/CopyMemQuicker.asm
  106.      474     266 43.8% 12-Jun-94 08:07:24  source/makefile
  107.     8810    2323 73.6% 12-Jun-94 08:06:52  source/testit.c
  108.     5432    2938 45.9% 21-Aug-94 15:33:36  TestIt
  109. -------- ------- ----- --------- --------
  110.    31619   12033 61.9% 30-Aug-94 11:34:50   9 files
  111.